package com.wwdx.service;

import com.wwdx.model.WvirtualUserModel;

import java.math.BigDecimal;

/**
 * @author liguoliang
 */
public interface WvirtualUserServiceI extends BaseServiceI<WvirtualUserModel> {

    /**
     * 查询用户虚拟币
     * @param unionid 用户ID
     * @return 虚拟币信息
     */
    WvirtualUserModel getByUnionId(String unionid);

    /**
     * 虚拟币充值消费
     * @param unionid 用户ID
     * @param number 虚拟币数量
     * @param status 0 充值 1 消费
     */
    void modifyNumber(String unionid, BigDecimal number, Integer status);
}